import request from 'src/utils/request'

//工单 首页统计
export function orderHome(data) {
    return request({
        url: '/serve/order/home',
        method: 'post',
        data
    })
}

//工单 首页折线图
export function orderTimeLine(data) {
    return request({
        url: '/serve/order/timeLine',
        method: 'post',
        data
    })
}

//工单 基本设置保存
export function settingsSave(data) {
    return request({
        url: '/serve/settings/save',
        method: 'post',
        data
    })
}


//工单 基本设置详情
export function settingsDetail(data) {
    return request({
        url: '/serve/settings/detail',
        method: 'post',
        data
    })
}



//工单 添加公告
export function noticeAdd(data) {
    return request({
        url: '/serve/notice/add',
        method: 'post',
        data
    })
}


//工单 web公告列表
export function noticeList(data) {
    return request({
        url: '/serve/notice/list',
        method: 'post',
        data
    })
}


//工单 修改公告
export function noticeUpdate(data) {
    return request({
        url: '/serve/notice/update',
        method: 'post',
        data
    })
}


//工单 web公告详情
export function noticeDetail(data) {
    return request({
        url: '/serve/notice/detail',
        method: 'post',
        data
    })
}


//工单 删除公告
export function noticeDelete(data) {
    return request({
        url: '/serve/notice/delete',
        method: 'post',
        data
    })
}


//工单 添加工作人员
export function workerAdd(data) {
    return request({
        url: '/serve/worker/add',
        method: 'post',
        data
    })
}

//工单 工作人员详情
export function workerDetail(data) {
    return request({
        url: '/serve/worker/detail',
        method: 'post',
        data
    })
}


//工单 修改工作人员
export function workerUpdate(data) {
    return request({
        url: '/serve/worker/update',
        method: 'post',
        data
    })
}


//工单 服务权限下拉选
export function authSelector(data) {
    return request({
        url: '/serve/auth/selector',
        method: 'post',
        data
    })
}

//工单 删除工作人员
export function workerDelete(data) {
    return request({
        url: '/serve/worker/delete',
        method: 'post',
        data
    })
}


//工单 排班
export function workerSchedule(data) {
    return request({
        url: '/serve/worker/schedule',
        method: 'post',
        data
    })
}

//工单管理 删除
export function orderDelete(data) {
    return request({
        url: '/serve/order/delete',
        method: 'post',
        data
    })
}



//工单管理 取消工单
export function orderCancel(data) {
    return request({
        url: '/serve/order/cancel',
        method: 'post',
        data
    })
}

//工单管理 web工单详情
export function orderDetail(data) {
    return request({
        url: '/serve/order/detail',
        method: 'post',
        data
    })
}


//工单管理 工作人员下拉选
export function workerSelector(data) {
    return request({
        url: '/serve/worker/selector',
        method: 'post',
        data
    })
}

//工单管理 分配任务
export function orderDispatch(data) {
    return request({
        url: '/serve/order/dispatch',
        method: 'post',
        data
    })
}